package com.order.service.impl;

import com.order.dao.OrderDao;
import com.order.pojo.Order;
import com.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderDao orderDao;
    @Override
    public Integer startEating(Order order) {
        return orderDao.startEating(order);
    }

    @Override
    public Boolean endEating(Double money, Integer order_id) {
        return orderDao.endEating(money,order_id);
    }

    @Override
    public Integer customerId(Integer orderId) {
        return orderDao.customerId(orderId);
    }

    @Override
    public Integer deskId(Integer order_id) {
        return orderDao.deskId(order_id);
    }


}
